package ooday05;
//鱼   游泳()       重写吃()
public class Fish extends Animal{
    Fish(String name,int age,int index){
        super(name,age,index);
    }

    void swim(){
        System.out.println(name+"正在游泳");
    }

    void eat(){
        System.out.println("编号为"+index+"的小鱼名叫"+name+"它正在吃鱼饵");
    }
}
